<template>
	<view>
		<login :isCanUse="isCanUse">111</login>
		<view class="head">
			<image src="../../static/head.jpg"></image>
			<text>银龙</text>
		</view>
		<uni-list style="margin-top: 20rpx;">
			<uni-list-item title="列表文字" showArrow="true"></uni-list-item>
			<uni-list-item title="列表文字" showArrow="true"></uni-list-item>
			<uni-list-item title="列表文字" showArrow="true"></uni-list-item>
			<uni-list-item title="列表文字" showArrow="true"></uni-list-item>
			<uni-list-item title="列表文字" showArrow="true"></uni-list-item>
			<uni-list-item title="列表文字" showArrow="true"></uni-list-item>
			<uni-list-item title="列表文字" showArrow="true"></uni-list-item>
			<uni-list-item title="列表文字" showArrow="true"></uni-list-item>
		</uni-list>
		<tabbar :showModal="inputq" ></tabbar>
	</view>
</template>

<script>
	import tabbar from '../../components/tabbar.vue'
	import login from '../../components/login.vue'
	
	export default {
		components:{
			tabbar,
			login
		},
		data() {
			return {
				inputq: 1,
				isCanUse:false
			}
		},
		onLoad(option) {
			console.log("个人中心")
			
			if (uni.getStorageSync('access_token') != "") {
				uni.reLaunch({ //信息更新成功后跳转到小程序首页
					url: '/pages/index/index'
				});
			} else {
				this.isCanUse = true
			}
			console.log(this.isCanUse)
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
.head{
	image{
		width: 150rpx;
		height: 150rpx;
		border-radius: 50%;
		display: block;
		margin: 10rpx auto;
	}
	text{
		text-align: center;
		display: block;
	}
}
</style>
